package cn.tworice.client.dao;

import cn.tworice.common.entity.Grades;
import cn.tworice.common.entity.Paper;
import cn.tworice.common.entity.dto.GradesDto;
import cn.tworice.common.entity.dto.PaperDto;
import io.swagger.models.auth.In;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface GradesDao {

    List<PaperDto> queryNotPaper(Long m, Integer start, Integer pageSize);

    Integer queryNotPaperTotal(long currentTimeMillis);

    List<PaperDto> queryObjectivePaper(Paper paper);

    void updateStatusToPaper(String examId, String adminId);

    List<Grades> queryObjectiveScoreByPaper(String examId, String adminId);

    void insertGrades(List<Grades> grades, long currentTimeMillis);

    List<GradesDto> queryGradesByAdminId(String adminId, int i, Integer pageSzie);

    Integer queryGradesTotal(String adminId);
}
